package com.huarui.sale.model;

import java.math.BigDecimal;
import org.ewaf.framework.model.BaseDataObject;

/**
 * 销售单条目
 * 
 * @author xu
 * 
 */
public class SaleItem extends BaseDataObject {

	private static final long serialVersionUID = -713383448014210425L;
	/**
	 * 主键　
	 */
	private Integer id;

	private Integer saleId;
	/**
	 * 零件ID
	 */
	private Integer partId;
	/**
	 * 卖方的零件属性ID
	 */
	private Integer inventoryIdBySeller;
	/**
	 * 订单明细中的ID(从订单中转过来的记录不能删除)
	 */
	private Integer ordersItemId;
	/**
	 * 编码
	 */
	private String code;

	private int source;

	private String name;

	private String nameEn;

	private String pyCode;

	private String measurementUnit;

	private int partCategoryId;

	private String level1Name;

	private String level2Name;

	private int level1Id;

	private String durability;
	/**
	 * 品牌
	 */
	private String brand;
	/**
	 * 产地
	 */
	private String origin;
	/**
	 * 价格
	 */
	private BigDecimal price;
	/**
	 * 订购单上的数量(订购单的QUANTITY字段)
	 */
	private int orderQuantity;
	/**
	 * 实际数量
	 */
	private Integer quantity;

	private BigDecimal retailAmount;
	/**
	 * 仓库id
	 */
	private Integer storeId;
	/**
	 * 仓位
	 */
	private String shelf;
	
	private String carModel;
	
	private String documentCode;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSaleId() {
		return saleId;
	}

	public void setSaleId(Integer saleId) {
		this.saleId = saleId;
	}

	public Integer getPartId() {
		return partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public Integer getInventoryIdBySeller() {
		return inventoryIdBySeller;
	}

	public void setInventoryIdBySeller(Integer inventoryIdBySeller) {
		this.inventoryIdBySeller = inventoryIdBySeller;
	}

	public Integer getOrdersItemId() {
		return ordersItemId;
	}

	public void setOrdersItemId(Integer ordersItemId) {
		this.ordersItemId = ordersItemId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getPyCode() {
		return pyCode;
	}

	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	public String getMeasurementUnit() {
		return measurementUnit;
	}

	public void setMeasurementUnit(String measurementUnit) {
		this.measurementUnit = measurementUnit;
	}

	public int getPartCategoryId() {
		return partCategoryId;
	}

	public void setPartCategoryId(int partCategoryId) {
		this.partCategoryId = partCategoryId;
	}

	public String getLevel1Name() {
		return level1Name;
	}

	public void setLevel1Name(String level1Name) {
		this.level1Name = level1Name;
	}

	public String getLevel2Name() {
		return level2Name;
	}

	public void setLevel2Name(String level2Name) {
		this.level2Name = level2Name;
	}

	public int getLevel1Id() {
		return level1Id;
	}

	public void setLevel1Id(int level1Id) {
		this.level1Id = level1Id;
	}

	public String getDurability() {
		return durability;
	}

	public void setDurability(String durability) {
		this.durability = durability;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getOrderQuantity() {
		return orderQuantity;
	}

	public void setOrderQuantity(int orderQuantity) {
		this.orderQuantity = orderQuantity;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getRetailAmount() {
		return retailAmount;
	}

	public void setRetailAmount(BigDecimal retailAmount) {
		this.retailAmount = retailAmount;
	}

	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public String getShelf() {
		return shelf;
	}

	public void setShelf(String shelf) {
		this.shelf = shelf;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public String getDocumentCode() {
		return documentCode;
	}

	public void setDocumentCode(String documentCode) {
		this.documentCode = documentCode;
	}

}
